package com.example.lotterysystem.service;

/**
 * Created with IntelliJ IDEA.
 * Description: 基于邮箱验证码实现
 * User: Li_yizYa
 * Date: 2025/8/3
 * Time: 13:41
 */
public interface VerificationCodeService {

    /**
     * 发送验证码
     * @param mailNumber
     */
    void sendVerificationCode(String mailNumber);

    /**
     * 从缓存中获取验证码
     * @param mailNumber
     * @return
     */
    String getVerificationCode(String mailNumber);
}
